/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
 *  SRVConnectionViewController.h - iPhoneSRV console for Surveyor SRV-1 and SVS 
 *
 *  Created by Nick Kitchener.  Copyright (C) 2009  Surveyor Corporation 
 *            and Nick Kitchener.  All rights reserved.
 *
 *  This program is free software; you can redistribute it and/or modify
 *  it under the terms of the GNU General Public License as published by
 *  the Free Software Foundation; either version 2 of the License, or
 *  (at your option) any later version.
 *
 *  This program is distributed in the hope that it will be useful,
 *  but WITHOUT ANY WARRANTY; without even the implied warranty of
 *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 *  GNU General Public License for more details (www.gnu.org/licenses)
 * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */

#import "SRVBlackfinController.h"
#import "SRVConnectOperation.h"
#import "SRVGetVersionOperation.h"
#import "SRVUIConfiguration.h"
#import "SRVUICVConnectProbe.h"

@interface SRVConnectionViewController : UIViewController {
	UIActivityIndicatorView *activity;
	SRVUIConfiguration		*configuration;
	SRVBlackfinController	*leftBlackfin;
	SRVBlackfinController	*rightBlackfin;
	NSMutableString			*log;
	UITextView					*logDisplay;
	NSTimer					*probingTimer;
	SRVUICVCConnectProbe		*leftProbe;
	SRVUICVCConnectProbe		*rightProbe;
	UIButton					*okButton;
	UIButton					*retryButton;
}
@property (assign) IBOutlet UIActivityIndicatorView *activity;
@property (assign) IBOutlet SRVUIConfiguration		*configuration;
@property (assign) IBOutlet SRVBlackfinController	*leftBlackfin;
@property (assign) IBOutlet SRVBlackfinController	*rightBlackfin;
@property (assign) IBOutlet UITextView				*logDisplay;
@property (assign) IBOutlet UIButton				*okButton;
@property (assign) IBOutlet UIButton				*retryButton;

-(IBAction)retryButton:(id)sender;

-(void)startConnectionProbe;
-(void)probingExpired:(NSTimer*)theTimer;
@end

